import { del, get, patch, post } from '@/utils/http';
/*医生信息*/

/* 医院列表*/
interface loadDataParams {
  page?: number;
  pageSize?: number;
  name?: string;
}
/**
 * 加载数据
 * @param data
 * @returns
 */
export const loadData = ({ page, pageSize, name }: loadDataParams) =>
  get('/admin/hospitals', {
    page: 1,
    pageSize: 10,
    name: '',
  });

interface addDataParams {
  name: 'string';
  desc: 'string';
  image: 'string';
  content: 'string';
  address: 'string';
  phone: 'string';
}

/**
 *  新增数据
 * @param data
 * @returns
 */
export const addData = (data: addDataParams) => post('/admin/hospitals', data);
